﻿@model FILSTARTUPS_MOBILE.Models.ForumThread_Info
         

@{
    ViewBag.Title = "ViewTopic";
    if (User.Identity.IsAuthenticated)
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_LayoutNonMember.cshtml";
    }
}

@section Nav
{
    @foreach(var nav in Model.PageNav)
    {
     <li><a href="../Home/Page?pageidPK=@nav.pageidPK&pagename=@nav.pagename">@nav.pagename</a></li>
    }
}


  <h2>@Model.ForumThreadMembers.forumtitle</h2>
  <div style="float:right">@Html.ActionLink("Reply", "ReplyTopic", new {id =Model.ForumThreadMembers.forumthreadidPK} )</div>
 
  <div class="content-textbox" style="min-height:50px;">
            <div style="float:left;">
	          Posted by:@Model.ForumThreadMembers.membername 
                <br />
              Date Posted: @Model.ForumThreadMembers.dateposted
              <br />
             </div>    
             <div style="margin-left:300px;">
               @Html.Raw(Model.ForumThreadMembers.forumdescription)
             </div>
   </div>

  @foreach (var reply in Model.ForumReplies)
  {
     
  <div class="content-textbox" style="min-height:50px;">
            <div style="float:left;">
	          Posted by:@reply.membername 
                <br />
              Date Posted: @reply.datereplied
              <br />
             </div>    
             <div style="margin-left:300px;">
               @Html.Raw(reply.replydescription)
             </div>
   </div>

  }